home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-13 | 9.8 KB | 330 lines | [TEXT/MPS ] |
- /*
- File: LinkDlgs.r
-
- Contains: resources for data interchange dialogs
-
- Owned by: Craig Carper
-
- Copyright: © 1994 - 1996 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <5> 12/17/96 CC 1384387: Removed 'STR ' 523 & 524 and
- 'ppat' 506.
- <4> 9/18/96 TJ 1384389 Remove RSRC names in Non-Debug
- Builds.
- <3> 9/10/96 eeh 1384356: remove dead code
- <2> 6/7/96 eeh T10017: move most stuff to LnkDlgEx.r
- <19> 10/16/95 CC GM 1293229: 'MENU' resources must be
- nonpurgeable.
- GM 1292157: Changed "No Kinds" to
- "Unknown"; "None Available" to "None for
- this Kind".
- <18> 9/20/95 TÇ 1285201 GM: Use
- alertPositionParentWindowScreen for dialogs
- <17> 8/23/95 CC 1278840: Added kPasteAsEmbedEditorText
- item.
- <16> 7/28/95 CC 1242615: Made all resources purgeable.
- 1242576: Removed resources for Others
- dialog.
- <15> 4/27/95 CC 1243348: Removed BreakLinkAlert resources.
- <14> 4/25/95 CC 1242555: Entered as bug 1242615 to check
- for purgeable resources.
- 1242555: $5 entered as bug 1242617.
- <13> 3/27/95 CC 1229640: Added items for editor popup and
- static text.
- <12> 3/17/95 CC 1220339: Changed title of Translation
- Choices dialog.
- <11> 3/9/95 CC 1220342: Tweeked layout of others dialog.
- <10> 3/3/95 CC 1223861 Added link status and link edition
- alert resources.
- <9> 2/24/95 CC 1153783: Changed link edition filename
- template string.
- <8> 2/15/95 CC 1194705 Changed titles of link info dialogs
- to "Link Destination Info" and "Link Source
- Info".
- 1196831 Added strings for constructing size
- of links.
- 1153942 Changed "Modified:" to "Updated:"
- in Link Info dialogs
- 1220324 Removed static text items for
- labeling radio buttons.
- 1191537 Revised Link Update alert
- resources.
- 1220318 Data Interchange Dialogs need to
- use 'finf' resource for localization
- 1191537 Need better wording in circular
- link alert.
- 1220324 Added 'CNTL' resources for controls
- that use window font.
- <7> 2/7/95 CC 1211295: Added two items to PasteAs dialog:
- kPasteAsKindLabel kPasteAsKindText.
- <6> 2/1/95 CC 1153347: Added 'STR ' resource for
- notification.
- <5> 1/10/95 CC 1153930: Added translation choices to Paste
- As dialog.
- <4> 10/7/94 CC 1160232 - Changes to link update alerts.
- <3> 9/20/94 CC 1160232 - Added resources for link cycle
- Alert dialog.
- <2> 7/31/94 CC Initialize kind string of link destination
- dialog to "(Unknown)".
- <1> 6/24/94 CC first checked in
- <3> 6/3/94 CC Fixed dctb resources.
- <2> 3/17/94 CC Added resources for ShowLinkSourceInfo()
- and ShowLinkDestinationInfo(). (1151329)
- <1> 3/14/94 CC first checked in
- <0> 3/14/94 CC Resources for Paste As dialog (1144253).
-
- */
- #define _USE_DIALOGS_LIB_
-
- // Picture items are used for the merge and embed icons because 32x32 ICONs
- // don't work well. The desired icon size is 19(high)x16(width). If the
- // display item is the desired size, the ICON is scaled. If the display item
- // is 32x32, the ICONs are drawn AFTER their radio buttons and can obscure them,
- // even though the radio buttons are later in the item sequence.
-
- #define SystemSevenOrBetter 1 // we want the extended types
- #define SystemSevenOrLater 1 // Types.r uses this variable
-
- #define oldTemp // Needed to use old-style 'dctb' resource
- #include "Types.r"
- #undef oldTemp // End of 'dctb' fix
-
- #include "SysTypes.r"
-
- #include "LinkDefs.h"
-
- #ifndef _USE_DIALOGS_LIB_
- // <eeh> removed old code
- #endif
-
- //-------------------------------------------------------------------------------------
- // Link Update Alert
- //-------------------------------------------------------------------------------------
-
- #define kLinkUpdateTextLines 5
- #define kLinkUpdateTextLineHeight 16
- #define kLinkUpdateTextHeight kLinkUpdateTextLines*kLinkUpdateTextLineHeight
- #define kLinkUpdateLeft 78
- #define kLinkUpdateTextWidth 245
- #define kLinkUpdateRight kLinkUpdateLeft+kLinkUpdateTextWidth
- #define kLinkUpdateBtnTop 13+kLinkUpdateTextHeight+13
- #define kLinkUpdateBtnBottom kLinkUpdateBtnTop+20
- #define kLinkUpdateBtnWidth 70
- #define kLinkUpdateContinueBtnLeft kLinkUpdateRight-kLinkUpdateBtnWidth
- #define kLinkUpdateStopBtnLeft kLinkUpdateRight-kLinkUpdateBtnWidth-13-kLinkUpdateBtnWidth
-
- resource 'ALRT' (kLinkUpdateAlertID
- #If ODDebug
- , "Link Update"
- #endif
- , purgeable) {
- {0, 0, kLinkUpdateBtnBottom+13, kLinkUpdateRight+13},
- kLinkUpdateAlertID,
- { /* array: 4 elements */
- /* [1] */
- Ok, visible, sound1,
- /* [2] */
- Ok, visible, sound1,
- /* [3] */
- Ok, visible, sound1,
- /* [4] */
- Ok, visible, sound1
- },
- alertPositionParentWindowScreen
- };
-
- resource 'DITL' (kLinkUpdateAlertID
- #If ODDebug
- , "Link Update"
- #endif
- , purgeable) {
- { /* array DITLarray: 4 elements */
- /* [1] */
- {kLinkUpdateBtnTop, kLinkUpdateContinueBtnLeft, kLinkUpdateBtnBottom, kLinkUpdateRight},
- Button {
- enabled,
- "Update"
- },
- /* [2] */
- {kLinkUpdateBtnTop, kLinkUpdateStopBtnLeft, kLinkUpdateBtnBottom, kLinkUpdateStopBtnLeft+kLinkUpdateBtnWidth},
- Button {
- enabled,
- "Stop"
- },
- /* [3] */
- {13, 23, 45, 55},
- Icon {
- disabled,
- 2
- },
- /* [4] */
- {13, kLinkUpdateLeft, 13+kLinkUpdateTextHeight, kLinkUpdateRight},
- StaticText {
- disabled,
- "Editing a link source has caused an update loop.\n"
- "\n"
- "Press Stop to interrupt updating, or press "
- "Update to continue."
- }
- }
- };
-
- //-------------------------------------------------------------------------------------
- // Link Status Alert
- //-------------------------------------------------------------------------------------
-
- #define kLinkStatusTextLines 6
- #define kLinkStatusTextLineHeight 16
- #define kLinkStatusTextHeight kLinkStatusTextLines*kLinkStatusTextLineHeight
- #define kLinkStatusLeft 78
- #define kLinkStatusTextWidth 245
- #define kLinkStatusRight kLinkStatusLeft+kLinkStatusTextWidth
- #define kLinkStatusBtnTop 13+kLinkStatusTextHeight+13
- #define kLinkStatusBtnBottom kLinkStatusBtnTop+20
- #define kLinkStatusBtnWidth 70
- #define kLinkStatusOKBtnLeft kLinkStatusRight-kLinkStatusBtnWidth
-
- resource 'ALRT' (kLinkStatusAlertID
- #If ODDebug
- , "Link Status"
- #endif
- , purgeable) {
- {0, 0, kLinkStatusBtnBottom+13, kLinkStatusRight+13},
- kLinkStatusAlertID,
- { /* array: 4 elements */
- /* [1] */
- Ok, visible, sound1,
- /* [2] */
- Ok, visible, sound1,
- /* [3] */
- Ok, visible, sound1,
- /* [4] */
- Ok, visible, sound1
- },
- alertPositionParentWindowScreen
- };
-
- resource 'DITL' (kLinkStatusAlertID
- #If ODDebug
- , "Link Status"
- #endif
- , purgeable) {
- { /* array DITLarray: 3 elements */
- /* [1] */
- {kLinkStatusBtnTop, kLinkStatusOKBtnLeft, kLinkStatusBtnBottom, kLinkStatusRight},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {13, 23, 45, 55},
- Icon {
- disabled,
- 2
- },
- /* [3] */
- {13, kLinkStatusLeft, 13+kLinkStatusTextHeight, kLinkStatusRight},
- StaticText {
- disabled,
- "The link information may not be accurate, "
- "because a problem was encountered getting information about the "
- "source of the link.\n"
- "\n"
- "(Error ^0)"
- }
- }
- };
-
- //-------------------------------------------------------------------------------------
- // Missing Link Edition Alert
- //-------------------------------------------------------------------------------------
-
- #define kLinkEditionTextLines 6
- #define kLinkEditionTextLineHeight 16
- #define kLinkEditionTextHeight kLinkEditionTextLines*kLinkEditionTextLineHeight
- #define kLinkEditionLeft 78
- #define kLinkEditionTextWidth 305
- #define kLinkEditionRight kLinkEditionLeft+kLinkEditionTextWidth
- #define kLinkEditionBtnTop 13+kLinkEditionTextHeight+13
- #define kLinkEditionBtnBottom kLinkEditionBtnTop+20
- #define kLinkEditionBtnWidth 70
- #define kLinkEditionOKBtnLeft kLinkEditionRight-kLinkEditionBtnWidth
-
- resource 'ALRT' (kLinkEditionAlertID, "Link Edition", purgeable) {
- {0, 0, kLinkEditionBtnBottom+13, kLinkEditionRight+13},
- kLinkEditionAlertID,
- { /* array: 4 elements */
- /* [1] */
- Ok, visible, sound1,
- /* [2] */
- Ok, visible, sound1,
- /* [3] */
- Ok, visible, sound1,
- /* [4] */
- Ok, visible, sound1
- },
- alertPositionParentWindowScreen
- };
-
- resource 'DITL' (kLinkEditionAlertID
- #If ODDebug
- , "Link Edition"
- #endif
- , purgeable) {
- { /* array DITLarray: 3 elements */
- /* [1] */
- {kLinkEditionBtnTop, kLinkEditionOKBtnLeft, kLinkEditionBtnBottom, kLinkEditionRight},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {13, 23, 45, 55},
- Icon {
- disabled,
- 2
- },
- /* [3] */
- {13, kLinkEditionLeft, 13+kLinkEditionTextHeight, kLinkEditionRight},
- StaticText {
- disabled,
- "The source of this link could not be found.\n"
- "\n"
- "If you have not broken the link at the source, you may be able to "
- "get a more recent update by opening the document containing "
- "the source of this link."
- }
- }
- };
-
- #if 0
- // Apparently not used [cc]
- //-------------------------------------------------------------------------------------
- // Color pattern used by link dialogs
- //-------------------------------------------------------------------------------------
-
- data 'ppat' (kLinkDlgsppatID, purgeable) {
- $"0001 0000 001C 0000 004E 0000 0000 FFFF"
- $"0000 0000 AA55 AA55 AA55 AA55 0000 0000"
- $"8001 0000 0000 0008 0008 0000 0000 0000"
- $"0000 0048 0000 0048 0000 0000 0001 0001"
- $"0001 0000 0000 0000 0056 0000 0000 55AA"
- $"55AA 55AA 55AA 0000 0000 0000 0001 0000"
- $"7777 7777 7777 0001 8888 8888 8888"
- };
- #endif
-
- //-------------------------------------------------------------------------------------
- // Strings used by the Link Manager
- //-------------------------------------------------------------------------------------
-
- resource 'STR ' (kODLinkMgrCannotShowSourceID, purgeable) {
- "Cannot show source of link (error ^0)."
- };
-
- resource 'STR ' (kODLinkMgrEditionTemplateID, purgeable) {
- "^0 Link ^1"
- };
-